package com.guijianpan.demo.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.guijianpan.framework.domain.BaseDomain;

/**
 * 
 * @author yzChen
 */
@Entity
@Table(name = "T_DEMO")
public class Demo extends BaseDomain {

	private static final long serialVersionUID = -5614453697619250524L;
	
	// 序号
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID")
	private Long id;

	// 表主健值
	@Column(name = "NAME")
	private String name;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	// 创建人
	@Column(name = "CREATOR")
	private Integer creator;
	
	// 修改人
	@Column(name = "UPDATOR")
	private Integer updator;
	
	// 创建时间
	@Column(name = "CREATE_TIME")
	private Date createTime;
	
	// 修改时间
	@Column(name = "UPDATE_TIME")
	private Date updateTime;
	
	// 是否删除
	@Column(name = "IS_DELETED")
	private Integer isDeleted = 0;

	public Integer getCreator() {
		return creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	public Integer getUpdator() {
		return updator;
	}

	public void setUpdator(Integer updator) {
		this.updator = updator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Demo [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append(", creator=");
		builder.append(creator);
		builder.append(", updator=");
		builder.append(updator);
		builder.append(", createTime=");
		builder.append(createTime);
		builder.append(", updateTime=");
		builder.append(updateTime);
		builder.append(", isDeleted=");
		builder.append(isDeleted);
		builder.append("]");
		return builder.toString();
	}

}
